package com.project.controller;

import com.project.service.ISupplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("supply")
public class SupplyController {
    @Autowired
    private ISupplyService supplyService;
    @RequestMapping("updateStatus")
    public Boolean updateStatus(@RequestParam("batch") String batch,@RequestParam("status") String status){
        supplyService.updateStatus(batch,status);
        return true;
    }
}
